Skip to content

farm: add --quiet/-q flag to podman farm list - #29536

Merged
mheon merged 1 commit into
podman-container-tools:mainfrom
umar11b:farm-list-quiet
Aug 17, 2026
Merged

farm: add --quiet/-q flag to podman farm list#29536
mheon merged 1 commit into
podman-container-tools:mainfrom
umar11b:farm-list-quiet

Conversation

@umar11b

@umar11b umar11b commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

The command feature 'farm' is really helpful when it comes to building multi-architecture container images, with a build out on various different CPU architecture machines (e.g. amd64, arm64 etc.). With this we essentially produce a multi-architecture image useable on many different kinds of machines. Once those farms are built, we can list them out (ls) in a human readable format.

Essentially, when we do a 'podman farm list', it will print out every field (e.g. name, connections, default etc.). What --quiet & -q flags does is it cuts the noise by ONLY printing the names of the farms, rather than all the other farms list metadata.

Benefits of having this feature in the future is for automation and scripts to just pull the farm names from the list. This is mostly important for the CI pipelines to loop over.

Note: make validatepr fails at hack/ci/pr-removes-fixed-skips.t due to a missing Perl module (Test::Differences) in the validatepr container image; Unrelated to this change. All lint/format/docs steps (golangci-lint, pre-commit hooks, markdown-preprocess, xref-helpmsgs-manpages) passed clean.

Checklist

Ensure you have completed the following checklist for your pull request to be reviewed:

  • I have read and understood our contributing guidelines and will not have more than two open PRs as a new contributor.
  • PR description, commit message, and GitHub comments are human-written, per LLM Policy
  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all
    commits. (git commit -s). (If needed, use git commit -s --amend). The author email must match
    the sign-off email address. See CONTRIBUTING.md
    for more information.
  • Referenced issues using Fixes: #00000 in commit message (if applicable)
  • Tests have been added/updated (or no tests are needed)
  • Documentation has been updated (or no documentation changes are needed)
  • All commits pass make validatepr (format/lint checks)
  • Release note entered in the section below (or None if no user-facing changes)

Does this PR introduce a user-facing change?

Yes; Please refer to the video demo along with the release notes

Screen.Recording.2026-08-15.at.8.32.53.PM.mov
Added the `--quiet`/`-q` flag to `podman farm list` to print only farm names.

The farm command is helpful when it comes to building
multi-architecture container images, with a build out on various
different CPU architecture machines (e.g. amd64, arm64 etc). This
produces a multi-architecture image usable on many different kinds
of machines. Once those farms are built, we can list them out (ls)
in a human readable format.

Currently, podman farm list prints out every field (name,
connections, default, etc). The --quiet/-q flags cut the noise by
only printing the names of the farms, rather than all the other
farm list metadata.

The benefit of having this feature is for automation and scripts to
pull just the farm names from the list, which is mostly important
for CI pipelines to loop over.

Signed-off-by: umar11b <uzaman2018@gmail.com>

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

PTAL @podman-container-tools/podman-maintainers @podman-container-tools/podman-reviewers

@mheon

mheon commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

LGTM

@mheon
mheon enabled auto-merge August 17, 2026 19:58
@mheon
mheon merged commit db8802b into podman-container-tools:main Aug 17, 2026
123 of 125 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants